﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace DAL.Mappings
{
    public class ApartmentSearchMap : ClassMap<ApartmentSearch>
    {
        public ApartmentSearchMap()
        {
            Id(x => x.Id);

            Map(x => x.Code);
            Map(x => x.Floor);
            Map(x => x.NumOfRooms);
            Map(x => x.Facade);

            References(x => x.Apartment).ForeignKey("Apartment_id");
        }
    }
}
